import request from '@/utils/request'

export async function nodeStylePageQuery(nodeStyle, paginator) {
  return await request({
    url: '/bicAdmin/nodeStyle/query',
    method: 'post',
    data: {
      'nodeStyle': nodeStyle,
      'paginator': paginator
    }
  })
}

export async function nodeStyleSave(nodeStyle) {
  return await request({
    url: '/bicAdmin/nodeStyle/save',
    method: 'post',
    data: nodeStyle
  })
}

export async function remoteValidateNodeStyleName(systemUuid, name) {
  return await request({
    url: '/bicAdmin/nodeStyle/validateName/' + systemUuid + '/' + name,
    method: 'get',
  })
}

export async function remoteValidatesNodeStyleKey(systemUuid, key) {
  return await request({
    url: '/bicAdmin/nodeStyle/validateKey/' + systemUuid + '/' + key,
    method: 'get',
  })
}

export async function nodeStyleLoad() {
  return await request({
    url: '/bicAdmin/nodeStyle/loadDefaultStyle',
    method: 'get',
  })
}
